module.exports = function ($scope, $resource, $modal, $modalInstance, place_code, toaster) {

    $resource('/api/as/tc/place/placeinfobycode', {}, {}).save({'place_code': place_code}, function(res) {
        if (res.errcode === 0) {
            $scope.placeinfo = res.data;
        } else {
            toaster.error({title: '', body: '查询景区信息失败'});
        }
    });

    $scope.close = function () {
        $modalInstance.close();
    }

};